<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>主播用户管理</title>
	<meta name="decorator" content="default"/>
</head>
<body>
 
	<%--<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/user/anchorUserlist">主播列表</a></li>
	</ul> --%>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
		<tr>
		<th>序号</th>
		<th>图片</th>
		<tbody>
		<c:forEach items="${fileList}" var="file" varStatus="index">
			<tr>
			   <td>${index.count}</td>
				<td><img src="${file}" style="max-width:400px;max-height:300px" /></td>  
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div>
	 <form:form id="formResult" action="${ctx}/sys/user/anchorAudit" method="post"
		class="form-horizontal">
		<input type="hidden" name="userId" id="userId" value="${userId}"  /> 
		<br />
		 <div class="control-group">
			<label class="control-label">审核状态:</label>
			<div class="controls">
				<span><input id="type1" name="status" value="2" type="radio"><label for="type1">通过</label>
				</span>
				<span><input id="type2" name="status" value="3" type="radio"><label for="type2">不通过</label></span>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="form-actions">
			 <input id="btnSubmit" class="btn btn-primary" type="button"
					value="确 定" /> 
		</div>
		</form:form>
	</div>
	<script type="text/javascript">
	$("#btnSubmit").click(function(){
		var postData = $("#formResult").serialize();
		var url = $("#formResult").attr("action");
		$.post(url, postData).done(function(data) {
			if (data.indexOf("success")>-1) {
				alert("提交成功");
			} else {
				alert("提交失败");
			}
			close();
		});
	});
	</script>
</body>
</html>